home *** CD-ROM | disk | FTP | other *** search
-
-
-
- sssseeeemmmm____cccclllloooosssseeee((((3333CCCC)))) sssseeeemmmm____cccclllloooosssseeee((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- _ssss_eeee_mmmm______cccc_llll_oooo_ssss_eeee - close a posix named semaphore
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_eeee_mmmm_aaaa_pppp_hhhh_oooo_rrrr_eeee_...._hhhh_>>>>
- _iiii_nnnn_tttt _ssss_eeee_mmmm______cccc_llll_oooo_ssss_eeee _((((_ssss_eeee_mmmm______tttt _****_s_e_m_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _ssss_eeee_mmmm______cccc_llll_oooo_ssss_eeee closes the connection to the named semaphore located at address
- _s_e_m. The address _s_e_m may reside anywhere in the calling processes
- address space, but the process must have read and write access to _s_e_m.
-
- If multiple threads within a common process (i.e., sprocs, pthreads) are
- sharing _s_e_m, a single call to _ssss_eeee_mmmm______cccc_llll_oooo_ssss_eeee will close the named semaphore
- for all threads within the calling process.
-
- Once a named semaphore has been closed, subsequent operations on the
- semaphore by the calling process will fail until the semaphore has been
- reopened.
-
- If the calling process was the last process to close the semaphore, and
- the semaphore has been unlinked via _ssss_eeee_mmmm______uuuu_nnnn_llll_iiii_nnnn_kkkk, then the named semaphore
- will cease to exist. Otherwise, the semaphore will persist.
-
- _ssss_eeee_mmmm______cccc_llll_oooo_ssss_eeee will fail if the following is true:
-
- [EINVAL] The semaphore located at address _s_e_m is not a valid posix
- named semaphore.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- sem_destroy(3C), sem_init(3C), sem_getvalue(3C), sem_post(3C),
- sem_wait(3C), sem_trywait(3C), sem_open(3C), sem_unlink(3C),
- shm_open(3C), mmap(3C)
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, a value of 0 is returned to the calling
- process. Otherwise, a value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to
- indicate the error.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-